package com.yida.gwj.common.domain.request;

import com.yida.gwj.common.valid.Save;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author lqq
 * @date 2023-03-13q
 */
@ApiModel("业主登录请求")
public class GwjOwnerLoginRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("姓名")
    @NotBlank(message = "请输入姓名")
    private String ownerName;

    @ApiModelProperty("手机号码")
    @NotBlank(message = "请输入手机号码")
    private String ownerPhone;

    @ApiModelProperty("身份证号码")
    @NotBlank(message = "请输入身份证号码")
    private String cardNum;

    @ApiModelProperty("短信验证码")
    @NotBlank(groups = Save.class, message = "请输入短信验证码")
    private String smsCode;

    public String getSmsCode() {
        return smsCode;
    }

    public void setSmsCode(String smsCode) {
        this.smsCode = smsCode;
    }

    public String getOwnerName() {
        return ownerName;
    }

    public void setOwnerName(String ownerName) {
        this.ownerName = ownerName;
    }

    public String getOwnerPhone() {
        return ownerPhone;
    }

    public void setOwnerPhone(String ownerPhone) {
        this.ownerPhone = ownerPhone;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("VoteUserLoginRequest{");
        sb.append("ownerName='").append(ownerName).append('\'');
        sb.append(", ownerPhone='").append(ownerPhone).append('\'');
        sb.append(", cardNum='").append(cardNum).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
